package com.easemob.cases.ui;


import com.hyphenate.easeui.domain.EaseEmojicon;
import com.hyphenate.easeui.domain.EaseEmojiconGroupEntity;
import com.hyphenate.easeui.utils.EaseSmileUtils;
import com.wechat.android.app.R;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by yang on 2017/12/13.
 */

public class EmojiconSinaGroupData {
    public static  List<EaseEmojicon> emojiconList = new ArrayList<>();

    private static int[] icons = new int[]{
            R.drawable.aa1,
            R.drawable.aa2,
            R.drawable.aa3,
            R.drawable.aa4,
            R.drawable.aa6,

    };



    private static String[] emojis = new String[]{
            EaseSmileUtils.ee_36,
            EaseSmileUtils.ee_37,
            EaseSmileUtils.ee_38,
            EaseSmileUtils.ee_39,
            EaseSmileUtils.ee_40,


    };

    private static final EaseEmojiconGroupEntity DATA = createData();

    private static EaseEmojiconGroupEntity createData() {
        EaseEmojiconGroupEntity emojiconGroupEntity = new EaseEmojiconGroupEntity();
        EaseEmojicon[] datas = new EaseEmojicon[icons.length];

        for (int i = 0; i < icons.length; i++) {
            datas[i] = new EaseEmojicon(icons[i], emojis[i], EaseEmojicon.Type.NORMAL);
            datas[i].setBigIcon(icons[i]);
//            you can replace this to any you want
//            datas[i].setName(emojis[i]);
            datas[i].setIdentityCode("a" + (i + 1));
        }
        emojiconList = Arrays.asList(datas);
        emojiconGroupEntity.setEmojiconList(Arrays.asList(datas));
        emojiconGroupEntity.setIcon(R.drawable.aa1);
        emojiconGroupEntity.setType(EaseEmojicon.Type.NORMAL);//设置类型，如果是nomal就可以输入输入框
        return emojiconGroupEntity;
    }


    public static EaseEmojiconGroupEntity getData() {
        return DATA;
    }
}
